/*
 * @Author: 肖芬芳 10547202+xiao-fenfang@user.noreply.gitee.com
 * @Date: 2022-07-22 10:17:11
 * @LastEditors: 肖芬芳 1911683843@qq.com
 * @LastEditTime: 2022-12-09 14:54:49
 * @FilePath: \vue-api-serverc:\Users\Administrator\Desktop\vite-project\src\views\system\user\components\option.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
export const addDialog={
    formData: { 'firstClassName': ''},
    formItem: [
        [{
            label: "一级分类名：",
            value: 'firstClassName',
            width: 12,
            type: 'text',
            maxlength:10,
            rule: [
                { required: true, message: '请输入一级分类名！', trigger: 'blur' },
                { min: 3, max:10,message: '一级分类名在3-10字符之间', trigger: 'blur' },
            ]

        }]
    ],
}

export const secondClassDrawer={
    formItem: [
        {
            label: "二级分类名：",
            value: 'secondClassName',
            width: 5,
            type: 'text',
            maxlength:10,

        },{
            label: "开始时间：",
            value: 'startTime',
            width: 5,
            type: 'time',

        },{
            label: "结束时间：",
            value: 'endTime',
            width: 5,
            type: 'time',
        }
    ],
    tableTitle: [{
        label: '二级分类名',
        value: 'secondClassName',
    }, {
        label: '归属一级分类',
        value: 'firstClassName',
    }, {
        label: '商品数量',
        value: 'goodsNum'
    }, {
        label: '状态',
        value: 'status',
        slotname:'status',
        switch: 1
    }, {
        label: '创建时间',
        value: 'createTime'
    }, {
        label: '操作',
        slotname: 'btn'
    }],
    dialogFormItem:[
        [{
            label: "二级分类名：",
            value: 'secondClassName',
            width: 12,
            type: 'text',
            maxlength:10,
            rule: [
                { required: true, message: '请输入二级分类名！', trigger: 'blur' },
                { min: 3, max:10,message: '二级分类名在3-10字符之间', trigger: 'blur' },
            ]

        }]
    ],
}